home *** CD-ROM | disk | FTP | other *** search
-
- #ifndef __dl_mem_h
- #define __dl_mem_h
- #ifndef __dl_core_h
- #include "Core.h"
- #endif
- typedef void *mem_anchor;
- #ifndef __dl_mem_c
- extern int mem_autocompact;
- #endif
- typedef enum
- {
- mem_NOCOMPACT = 0,
- mem_FASTCOMPACT = 1,
- mem_PARTCOMPACT = 1,
- mem_FULLCOMPACT = 2
- } mem_compaction;
-
- extern BOOL Mem_Initialise(void);
-
- extern BOOL Mem_Alloc(mem_anchor *anchor, int numbytes);
-
- extern BOOL Mem_MidExtend(mem_anchor *anchor, int at, int by);
-
- extern void Mem_Free(mem_anchor *anchor);
-
- extern void Mem_Compact(void);
-
- extern int Mem_Size(mem_anchor *anchor);
- #endif
-